// Sunghan Cho
// 301140084
// sunghanc@sfu.ca

#ifndef DATAFILEPROCESSOR_H
#define DATAFILEPROCESSOR_H

#include <QObject>
#include "itemmanager.h"

/*
 * Object to read data in from a CSV file and populate
 * the course and student model.
 * by Brian Fraser, 2012
 */
class DataFileProcessor : public QObject
{
	Q_OBJECT
public:
	explicit DataFileProcessor(ItemManager *pCourses, ItemManager *pStudents, QObject *parent = 0);

public slots:
	void processFile(QString fileName);

private:
	ItemManager *m_pCourses;
	ItemManager *m_pStudents;
};

#endif // DATAFILEPROCESSOR_H
